#ifndef FFMPEGEXTRA_EYERWASMBUFFER_HPP
#define FFMPEGEXTRA_EYERWASMBUFFER_HPP

#include <stdint.h>
#include <stdlib.h>
#include <string.h>

namespace Eyer
{
    class EyerWASMBuffer
    {
    public:
        EyerWASMBuffer();
        ~EyerWASMBuffer();

        EyerWASMBuffer(const EyerWASMBuffer & buffer);

        const EyerWASMBuffer & operator = (const EyerWASMBuffer & buffer);

        int Clear();

        int SetBuffer(uint8_t * buf, size_t bufSize);

        uint8_t * GetPtr();
        size_t GetBufferSize();

    private:
        uint8_t * m_buf = nullptr;
        size_t m_bufSize = 0;
    };
}

#endif //FFMPEGEXTRA_EYERWASMBUFFER_HPP
